<?php
	if(!file_exists("config.php")) {
		die("No config file found!");
	}

	require_once("config.php");

	class mysql {
		function conn() {
			$conn = @mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die(mysql_error());
			@mysql_select_db(DB_NAME) or die(mysql_error());
		}

		function close() {
			@mysql_close();
		}
	}

	$MySQL = new mysql;
?>
		
